bbsblssignature2020

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: 8

Documentation

Overview

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. It uses the RDF Dataset Normalization Algorithm to transform the input document into its canonical form. It uses SHA-256 [RFC6234] as the statement digest algorithm. It uses BBS+ signature algorithm (https://mattrglobal.github.io/bbs-signatures-spec/). It uses BLS12-381 pairing-friendly curve (https://tools.ietf.org/html/draft-irtf-cfrg-pairing-friendly-curves-03).

Index

Constants

View Source
const (
	// SignatureType is the BbsBlsSignature2020 type string.
	SignatureType = "BbsBlsSignature2020"
)

Variables

This section is empty.

Functions

func NewG2PublicKeyVerifier

func NewG2PublicKeyVerifier() *verifier.PublicKeyVerifier

NewG2PublicKeyVerifier creates a signature verifier that verifies a BbsBlsSignature2020 signature taking Bls12381G2Key2020 public key bytes as input.

Types

type Suite

type Suite = bbsblssignature2020.Suite

Suite implements BbsBlsSignature2020 signature suite.

func New

func New(opts ...suite.Opt) *Suite

New an instance of Linked Data Signatures for JWS suite.

Jump to

Keyboard shortcuts

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