merlin

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: BSD-3-Clause Imports: 2 Imported by: 162

README

Merlin is a STROBE-based transcript construction for zero-knowledge proofs. It automates the Fiat-Shamir transform, so that by using Merlin, non-interactive protocols can be implemented as if they were interactive.

For more details, see dalek-cryptography/merlin.

This project is released under the usual Go-friendly BSD-style license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transcript

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

func NewTranscript

func NewTranscript(appLabel string) *Transcript

func (*Transcript) AppendMessage

func (t *Transcript) AppendMessage(label, message []byte)

Append adds the message to the transcript with the supplied label.

func (*Transcript) ExtractBytes

func (t *Transcript) ExtractBytes(label []byte, outLen int) []byte

ExtractBytes returns a buffer filled with the verifier's challenge bytes. The label parameter is metadata about the challenge, and is also appended to the transcript. See the Transcript Protocols section of the Merlin website for details on labels.

Jump to

Keyboard shortcuts

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