suite

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSignerNotDefined = suite.ErrSignerNotDefined

ErrSignerNotDefined is returned when Sign() is called but signer option is not defined.

View Source
var ErrVerifierNotDefined = suite.ErrVerifierNotDefined

ErrVerifierNotDefined is returned when Verify() is called but verifier option is not defined.

Functions

This section is empty.

Types

type CryptoSigner

type CryptoSigner = suite.CryptoSigner

CryptoSigner defines signer based on crypto.

func NewCryptoSigner

func NewCryptoSigner(cr crypto.Crypto, kh interface{}) *CryptoSigner

NewCryptoSigner creates a new CryptoSigner.

type CryptoVerifier

type CryptoVerifier = suite.CryptoVerifier

CryptoVerifier defines signature verifier based on crypto.

func NewCryptoVerifier

func NewCryptoVerifier(cr crypto.Crypto) *CryptoVerifier

NewCryptoVerifier creates a new CryptoVerifier.

type Opt

type Opt = suite.Opt

Opt is the SignatureSuite option.

func WithCompactProof

func WithCompactProof() Opt

WithCompactProof indicates that proof compaction is needed, by default it is not done.

func WithSigner

func WithSigner(s signer) Opt

WithSigner defines a signer for the Signature Suite.

func WithVerifier

func WithVerifier(v verifier) Opt

WithVerifier defines a verifier for the Signature Suite.

type SignatureSuite

type SignatureSuite = suite.SignatureSuite

SignatureSuite defines general signature suite structure.

func InitSuiteOptions

func InitSuiteOptions(signatureSuite *SignatureSuite, opts ...Opt) *SignatureSuite

InitSuiteOptions initializes signature suite with options.

Directories

Path Synopsis
Package bbsblssignature2020 implements the BBS+ Signature Suite 2020 signature suite (https://w3c-ccg.github.io/ldp-bbs2020) in conjunction with the signing and verification algorithms of the Linked Data Proofs.
Package bbsblssignature2020 implements the BBS+ Signature Suite 2020 signature suite (https://w3c-ccg.github.io/ldp-bbs2020) in conjunction with the signing and verification algorithms of the Linked Data Proofs.
Package bbsblssignatureproof2020 implements the BBS+ Signature Proof Suite 2020 signature suite (https://w3c-ccg.github.io/ldp-bbs2020) in conjunction with the signing and verification algorithms of the Linked Data Proofs.
Package bbsblssignatureproof2020 implements the BBS+ Signature Proof Suite 2020 signature suite (https://w3c-ccg.github.io/ldp-bbs2020) in conjunction with the signing and verification algorithms of the Linked Data Proofs.
Package ecdsasecp256k1signature2019 implements the EcdsaSecp256k1Signature2019 signature suite for the Linked Data Signatures specification (https://w3c-dvcg.github.io/lds-ecdsa-secp256k1-2019/).
Package ecdsasecp256k1signature2019 implements the EcdsaSecp256k1Signature2019 signature suite for the Linked Data Signatures specification (https://w3c-dvcg.github.io/lds-ecdsa-secp256k1-2019/).
Package ed25519signature2018 implements the Ed25519Signature2018 signature suite for the Linked Data Signatures [LD-SIGNATURES] specification.
Package ed25519signature2018 implements the Ed25519Signature2018 signature suite for the Linked Data Signatures [LD-SIGNATURES] specification.
Package ed25519signature2020 implements the Ed25519Signature2020 signature suite for the Linked Data Signatures [LD-SIGNATURES] specification.
Package ed25519signature2020 implements the Ed25519Signature2020 signature suite for the Linked Data Signatures [LD-SIGNATURES] specification.
Package jsonwebsignature2020 implements the JsonWebSignature2020 signature suite for the Linked Data Signatures specification (https://github.com/transmute-industries/lds-jws2020).
Package jsonwebsignature2020 implements the JsonWebSignature2020 signature suite for the Linked Data Signatures specification (https://github.com/transmute-industries/lds-jws2020).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL