Skip to content

Commit

Permalink
add: script to generate all pubkeys in DID
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-dintino committed Apr 30, 2024
1 parent 627a398 commit 5571e2d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/gen_all_pubkeys_in_did.zen
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

# This script generates all the pubkeys used in the current DID version, Scenario 'nameOfScenario': comment here whatever
# https://explorer.did.dyne.org/details/did:dyne:sandbox.signroom:ZtAyHGtknGoWsJK2soJ24ZL1YN6z7jr7FSPmAiETrHT

# Loading scenarios
Scenario 'ecdh': Create the public key
Scenario 'es256': Create the public key
Scenario 'ethereum': Create the address
Scenario 'reflow': Create the public key

Scenario 'eddsa': Create the public key
Scenario 'bbs': implementation of https://identity.foundation/bbs-signature/draft-irtf-cfrg-bbs-signatures.html
Scenario 'pvss': Create the public key
Scenario 'qp': Create the public key

# Loading the private keys
Given I have the 'keyring'


When I create the ecdh public key
When I create the es256 public key
When I create the reflow public key

When I create the bitcoin public key
When I create the eddsa public key
When I create the ethereum address

# Here we pring all the output
Then print the 'ecdh public key' as 'base58'
Then print the 'es256 public key' as 'base58'
Then print the 'eddsa public key' as 'base58'
Then print the 'reflow public key' as 'base58'
Then print the 'bitcoin public key' as 'base58'
Then print the 'ethereum address'

0 comments on commit 5571e2d

Please sign in to comment.