diff --git a/common/nym_offline_compact_ecash/src/scheme/setup.rs b/common/nym_offline_compact_ecash/src/scheme/setup.rs index 5852d7923b..fb29dfd4d6 100644 --- a/common/nym_offline_compact_ecash/src/scheme/setup.rs +++ b/common/nym_offline_compact_ecash/src/scheme/setup.rs @@ -12,6 +12,7 @@ use crate::Base58; const ATTRIBUTES_LEN: usize = 3; +#[derive(Debug)] pub struct GroupParameters { /// Generator of the G1 group g1: G1Affine, @@ -102,6 +103,7 @@ pub struct PublicKeyRP { pub(crate) beta: G2Projective, } +#[derive(Debug)] pub struct Parameters { /// group parameters grp: GroupParameters, diff --git a/nym-api/migrations/20210722120000_create_initial_tables.sql b/nym-api/migrations/20210722120000_create_initial_tables.sql index a4618860a6..eeafc220db 100644 --- a/nym-api/migrations/20210722120000_create_initial_tables.sql +++ b/nym-api/migrations/20210722120000_create_initial_tables.sql @@ -76,14 +76,6 @@ create table gateway_ipv6_status FOREIGN KEY (gateway_details_id) REFERENCES gateway_details (id) ); -create table credentials -( - id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - credential TEXT NOT NULL, - gateway_address TEXT NOT NULL - -); - -- indices for faster lookups CREATE INDEX `mixnode_ipv4_status_index` ON `mixnode_ipv4_status` (`mixnode_details_id`, `timestamp` desc); diff --git a/nym-api/migrations/20231106120000_add_credential_table.sql b/nym-api/migrations/20231106120000_add_credential_table.sql new file mode 100644 index 0000000000..03139574a7 --- /dev/null +++ b/nym-api/migrations/20231106120000_add_credential_table.sql @@ -0,0 +1,12 @@ +/* + * Copyright 2023 - Nym Technologies SA + * SPDX-License-Identifier: Apache-2.0 + */ + +create table credentials +( + id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, + credential TEXT NOT NULL, + gateway_address TEXT NOT NULL + +);