package
0.0.0-20221215221056-55a02700aa6b
Repository: https://github.com/workdaycredentials/ledger-common.git
Documentation: pkg.go.dev

# Functions

NewEd25519Signer is used to build a signer with validations.
No description provided by the author
TODO This method should be deprecated in place of signature suite validation VerifySecp256k1Signature decodes the base64 message and verifies that the Secp256k1 digital signature was generated by the private key associated with publicKeyDerBase58.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: do not use this signature type.
The only key type that should be used for Ed25519 keys.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: Do not create more keys of this type.
Deprecated: Do not create more signatures of this type.

# Variables

No description provided by the author

# Structs

No description provided by the author
TODO(gabe) consider moving the Base64 encoding into the Canonicalizer instead of as a Digest.
Unification type for all ed25519 based signers Intended to be constructed via the `NewEd25519Signer` method.
No description provided by the author
EmbeddedProofMarshaler transforms the Provable into JSON, and leaves an embedded Proof sans the signature value.
No description provided by the author
A generic holder for an object with an embedded proof.
HeaderPrepender prepends a header to the data for a JWS.
JCSCanonicalizer transforms a JSON byte array using the JSON Canonicalization Scheme algorithm.
No description provided by the author
No description provided by the author
No description provided by the author
LDSignatureSuite is a SignatureSuite based on the Linked-Data Signatures specification.
NonceAppender appends ".<nonce>" to the payload before signing or verifying.
Proof represents a verifiable digital signature conforming to https://www.w3.org/TR/vc-data-model/#proofs-signatures.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SHA256Encoder creates a SHA-256 hash of the payload.
WithoutProofMarshaler transforms the Provable into JSON, and strips the proof.

# Interfaces

Canonicalizer transforms a JSON byte array into its canonical form.
No description provided by the author
Marshaler turns a Provable object into a JSON byte array.
MessageDigest transforms a byte array into a more compact byte array using a hashing digest algorithm, such as sha256.
OptionsAppender appends the proof options (metadata) to the payload before signing or verifying.
ProofFactory creates proofs given a signer and signature type.
Provable is an interface that allows in-place retrieval and modification of proof objects.
SignatureSuite is a set of algorithms that specify how to sign and verify provable objects.
No description provided by the author
Signer can generate digital signatures using a particular signing algorithm.
Verifier can verify a digital signature of a particular signing algorithm.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author