bbs

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package bbs provides an implementation of the BBS signature scheme

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProofGen

func ProofGen(pk PublicKey, signature []byte, header []byte, ph []byte, messages [][]byte, disclosedIndexes []int) ([]byte, error)

func ProofVerify

func ProofVerify(pk, proof, header, ph []byte, disclosedMessages [][]byte, disclosedIndexes []int) error

func Sign

func Sign(sk SecretKey, pk []byte, header []byte, messages [][]byte) ([]byte, error)

func Verify

func Verify(pk PublicKey, signature, header []byte, messages [][]byte) error

Types

type Proof

type Proof struct {
	Abar *pairing.G1
	Bbar *pairing.G1
	// contains filtered or unexported fields
}

func (Proof) Encode

func (p Proof) Encode() []byte

type PublicKey

type PublicKey []byte

type SecretKey

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

func (SecretKey) Encode

func (s SecretKey) Encode() []byte

func (SecretKey) Public

func (s SecretKey) Public() PublicKey

type Signature

type Signature struct {
	A *pairing.G1
	// contains filtered or unexported fields
}

func UnmarshalSignature

func UnmarshalSignature(data []byte) (Signature, error)

func (Signature) Encode

func (s Signature) Encode() []byte

Jump to

Keyboard shortcuts

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