Documentation ¶
Index ¶
Constants ¶
View Source
const ( JCSVerificationType = "Ed25519VerificationKey2018" JCSSignatureType = "JcsEd25519Signature2020" )
Variables ¶
This section is empty.
Functions ¶
func GenericSign ¶
func GenericSign(provable Provable, privKey ed25519.PrivateKey) ([]byte, error)
Types ¶
type Proof ¶
type Proof struct { Created string `json:"created,omitempty"` VerificationMethod string `json:"verificationMethod,omitempty"` Nonce string `json:"nonce,omitempty"` SignatureValue string `json:"signatureValue,omitempty"` Type string `json:"type,omitempty"` }
Proof a signed proof of a given ledger document
func CreateEd25519Proof ¶
func CreateEd25519ProofOptions ¶
func CreateEd25519ProofOptions(provable Provable, privKey ed25519.PrivateKey, opts ProofOptions) (*Proof, error)
type ProofOptions ¶
Click to show internal directories.
Click to hide internal directories.