- node >= v12
- libusb libudev
This provides no help when debugging only key production.
- NACL
- ECDH and ECDSA (p256)
- CURVE25519
var ok = onlykey(KEYTYPE , ENCRYPT_RESP);
KEYTYPE
- KEYTYPE_NACL =
0
- KEYTYPE_P256R1 =
1
- KEYTYPE_P256K1 =
2
- KEYTYPE_CURVE25519 =
3
ENCRYPT_RESP
- OFF =
0
- ON =
1
ok.connect(function() {})
connect sets onlykey time
ok.on(event,function() {})
List of events
"status"
outputs current operation in english"error"
emits any errors during operations"debug"
outpus any debug and status in english, likestatus
but more details
KEYTYPE_P256R1 = 1
After connect
, 2 methods are added to ok
ok.derive_public_key(additional_d, function(error, jwk_epub) {})
ok.derive_shared_secret(additional_d, jwk_epub, function(error, shared_secret) {})
additional_d
=string
orbuffer
to point to a derived keyjwk_epub
= public key in jwk formatshared_secret
= shared AES-GCM key
- Tim ~ onlykey.io
- Brad ~ bmatusiak.us