Browse Source

support generating a private/public key pair by running this...

Need to think a bit more as it requires the test library, which isn't
immediately available...

Likely need to make this a proper package and put the library there..
main
John-Mark Gurney 2 years ago
parent
commit
77cd0a6558
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      syote_comms.py

+ 6
- 0
syote_comms.py View File

@@ -225,6 +225,12 @@ def comms_process_wrap(state, input):

return outbuf._from()

if __name__ == '__main__':
key = X25519.gen()

print(key.getpriv().hex())
print(key.getpub().hex())

class TestX25519(unittest.TestCase):
PUBLIC_BYTES = EC_PUBLIC_BYTES
PRIVATE_BYTES = EC_PRIVATE_BYTES


Loading…
Cancel
Save