Skip to main content

Crypto

The crypto manager exposes the cryptographic primitives the SDK uses for ephemeral key registration and for signing lock operations. All key pairs are Ed25519.

Each platform uses its own crypto provider and its own native key encoding:

PlatformProvider
JVMJava Security API
AndroidBouncy Castle
iOS / macOS / watchOSApple CryptoKit
JS / Browser / NodeLibsodium
C# / PythonLibsodium

Generate a key pair​

Generates a brand-new Ed25519 key pair. The key pair is not stored automatically.

// Returns a KeyPair
val keyPair = sdk.crypto().generateKeyPair()