Return the internally-used key pair.
a {@link CryptoKeyPair}
Get the principal represented by this identity. Normally should be a
Principal.selfAuthenticating()
.
Return the public key.
an DerCryptoKey
Signs a blob of data, with this identity's private key.
challenge to sign with this identity's secretKey, producing a signature
signature
Transform a request into a signed version of the request. This is done last after the transforms on the body of a request. The returned object can be anything, but must be serializable to CBOR.
internet computer request to transform
generates an identity from a public and private key. Please ensure that you are generating these keys securely and protect the user's private key
a {@link CryptoKeyPair}
a {@link SubtleCrypto} interface in case one is not available globally
Generates a randomly generated identity for use in calls to the Internet Computer.
optional settings
Generated using TypeDoc
An identity interface that wraps an ECDSA keypair using the P-256 named curve. Supports DER-encoding and decoding for agent calls