package
0.0.0-20241007201740-e151f76f08af
Repository: https://github.com/tkhq/go-sdk.git
Documentation: pkg.go.dev

# Functions

DecodeTurnkeyPublicECDSAKey takes a Turnkey-encoded public key and creates an ECDSA public key.
EncodePrivateECDSAKey encodes an ECDSA private key into the Turnkey format.
EncodePublicECDSAKey encodes an ECDSA public key into the Turnkey format.
ExtractSignatureSchemeFromSuffixedPrivateKey infers the signature type from a suffix appended to the end of the private key data (e.g.
FromECDSAPrivateKey takes an ECDSA keypair and forms a Turnkey API key from it.
FromED25519PrivateKey takes an ED25519 keypair and forms a Turnkey API key from it.
FromTurnkeyPrivateKey takes a Turnkey-encoded private key, derives a public key from it, and then returns the corresponding Turnkey API key.
New generates a new Turnkey API key.
Stamp generates a signing stamp for the given message with the given API key.
No description provided by the author

# Constants

CurveEd25519 is the wrapped form of the shorthand for the ed25519 curve.
CurveP256 is the wrapped form of the shorthand for the p256 curve.
CurveSecp256k1 is the wrapped form of the shorthand for the secp256k1 curve.
SchemeED25519 is the API enum value for ed25519 curve.
SchemeP256 is the API enum value for p256 curve.
SchemeSECP256K1 is the API enum value for secp256k1 curve.
SchemeUnsupported is a placeholder for scheme not supported by the API, returned if invalid Curve value is supplied to CurveToScheme.

# Structs

APIStamp defines the stamp format used to authenticate payloads to the API.
Key defines a structure in which to hold both serialized and ecdsa-lib-friendly versions of a Turnkey API keypair.
Metadata stores non-secret metadata about the API key.

# Type aliases

Curve is a wrapped abbreviated version of curve; use with CurveToScheme to produce signatureScheme, which is non-exported to limit options.