api

package
v0.0.0-...-57c6170 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer interface {
	// Sign will sign create signature of each message and aggregate it into a single signature using the signer's
	// private key.
	// returns:
	// 		signature in []byte
	//		error in case of errors
	Sign(messages [][]byte) ([]byte, error)
}

Signer is the signing interface primitive for BBS+ signatures used by Tink.

type Verifier

type Verifier interface {
	// Verify will verify an aggregated signature of one or more messages against the signer's public key.
	// returns:
	// 		error in case of errors or nil if signature verification was successful
	Verify(messages [][]byte, signature []byte) error

	// VerifyProof will verify a BBS+ signature proof (generated e.g. by Verifier's DeriveProof() call) with the
	// signer's public key.
	// returns:
	// 		error in case of errors or nil if signature proof verification was successful
	VerifyProof(messages [][]byte, proof, nonce []byte) error

	// DeriveProof will create a BBS+ signature proof for a list of revealed messages using BBS signature
	// (can be built using a Signer's Sign() call) and the signer's public key.
	// returns:
	// 		signature proof in []byte
	//		error in case of errors
	DeriveProof(messages [][]byte, signature, nonce []byte, revealedIndexes []int) ([]byte, error)
}

Verifier is the verification interface primitive for BBS+ signatures/proofs used by Tink.

Jump to

Keyboard shortcuts

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