localsigner

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: EUPL-1.2 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key added in v0.7.0

type Key struct {
	KeyIdentifier string `mapstructure:"key-identifier"`
	PkPath        string `mapstructure:"public-key-path"`
	SkPath        string `mapstructure:"private-key-path"`

	// DEPRECATED: This field is deprecated and should be removed when callers have been migrated
	KeyUsage string `mapstructure:"key-usage"`
	// contains filtered or unexported fields
}

type KeySpecification added in v0.7.2

type KeySpecification struct {
	KeyIdentifier string

	// DEPRECATED: Deprecated field in temporary structure
	KeyUsage string
}

DEPRECATED: This struct is temporary and should be removed when callers have been migrated

type LocalSigner

type LocalSigner struct {
	// contains filtered or unexported fields
}

func New

func New(keys []*Key, pool gabipool.PrimePool) (*LocalSigner, error)

func (*LocalSigner) FindIssuerPk added in v0.3.0

func (ls *LocalSigner) FindIssuerPk(ks *KeySpecification) (pk *gabi.PublicKey, kid string, err error)

func (*LocalSigner) GetPrimePool added in v0.5.1

func (ls *LocalSigner) GetPrimePool() gabipool.PrimePool

func (*LocalSigner) PrepareSign

func (ls *LocalSigner) PrepareSign(ks *KeySpecification) (pkId string, issuerNonce *big.Int, err error)

func (*LocalSigner) Sign

func (ls *LocalSigner) Sign(ks *KeySpecification, credentialsAttributes [][]*big.Int, proofUs []*big.Int, holderNonce *big.Int) (isms []*gabi.IssueSignatureMessage, err error)

Jump to

Keyboard shortcuts

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