diff --git a/client/v1/issuer/create-identity-pubkeys.zen b/client/v1/issuer/create-identity-pubkeys.zen index a83cc2e..ead2188 100644 --- a/client/v1/issuer/create-identity-pubkeys.zen +++ b/client/v1/issuer/create-identity-pubkeys.zen @@ -6,6 +6,7 @@ Scenario 'eddsa' : Create the pk Scenario 'credential': Create the pk Scenario 'bbs': Create the pk Scenario 'es256': Create the pk +Scenario 'qp': Create the pk Given my name is in a 'string' named 'controller' and I have my 'keyring' @@ -18,6 +19,7 @@ and I create the reflow public key and I create the issuer public key and I create the bbs public key and I create the es256 public key +and I create the dilithium public key Then I print the 'eddsa public key' and I print the 'ethereum address' @@ -27,4 +29,5 @@ and I print the 'reflow public key' and I print the 'issuer public key' as 'compressed issuer public key' and I print the 'bbs public key' and I print the 'es256 public key' +and I print the 'dilithium public key' and I print my name in 'identity' diff --git a/client/v1/issuer/create-keyring.zen b/client/v1/issuer/create-keyring.zen index 6e55d0f..ec3ed1c 100644 --- a/client/v1/issuer/create-keyring.zen +++ b/client/v1/issuer/create-keyring.zen @@ -5,6 +5,7 @@ Scenario reflow Scenario es256 Scenario credential Scenario bbs +Scenario qp Given I my name is in a 'string' named 'controller' @@ -16,6 +17,7 @@ and I create the reflow key and I create the es256 key and I create the issuer key and I create the bbs key +and I create the dilithium key # keyring and explicit owner identity Then print my 'keyring' diff --git a/client/v1/issuer/did-settings.json b/client/v1/issuer/did-settings.json index 675f04f..76c1dc1 100644 --- a/client/v1/issuer/did-settings.json +++ b/client/v1/issuer/did-settings.json @@ -8,6 +8,7 @@ "https://dyne.github.io/W3C-DID/specs/IssuerBLS12381.json", "https://dyne.github.io/W3C-DID/specs/Bbs.json", "https://dyne.github.io/W3C-DID/specs/EcdsaSecp256r1.json", + "https://dyne.github.io/W3C-DID/specs/Dilithium2.json", { "description": "https://schema.org/description" } diff --git a/client/v1/issuer/pubkeys-request-unsigned.zen b/client/v1/issuer/pubkeys-request-unsigned.zen index b59c877..c9648f7 100644 --- a/client/v1/issuer/pubkeys-request-unsigned.zen +++ b/client/v1/issuer/pubkeys-request-unsigned.zen @@ -8,6 +8,7 @@ Scenario 'eddsa' : Move pk in did doc Scenario 'credential': Move pk in did doc Scenario 'bbs': Move pk in did doc Scenario 'es256': Move pk in did doc +Scenario 'qp': Move pk in did doc # data Given I have a 'string array' named '@context' @@ -20,6 +21,7 @@ Given I have a 'ecdh_public_key' Given I have a 'reflow_public_key' Given I have a 'bbs_public_key' Given I have a 'es256_public_key' +Given I have a 'dilithium_public_key' Given I have a 'base58' named 'issuer_public_key' Given I have a 'base58' named 'bitcoin public key' @@ -153,7 +155,23 @@ When I move 'id' in 'verification-key' When I copy the 'did:dyne:' to 'controller' in 'verification-key' When I move 'verification-key' in 'verificationMethod' -# 8-ethereum address +# 8-dilithium public key +When I create the 'string dictionary' named 'verification-key' +# pk +When I create the 'base58' string of 'dilithium public key' +and I move the 'base58' to 'publicKeyBase58' in 'verification-key' +# type +When I set 'type' to 'Dilithium2VerificationKey' as 'string' +When I move 'type' in 'verification-key' +# id +When I copy 'did:dyne:' to 'id' +When I append the string '#dilithium_public_key' to 'id' +When I move 'id' in 'verification-key' +# controller +When I copy the 'did:dyne:' to 'controller' in 'verification-key' +When I move 'verification-key' in 'verificationMethod' + +# 9-ethereum address When I create the 'string dictionary' named 'verification-key' # address # this follows the CAIP-10(https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-10.md) spec