transcripts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package transcripts provides transcript abstractions and helpers for protocols.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append[T base.BytesLike](tape Transcript, label string, xs ...T)

Append writes BytesLike values to the transcript under the given label.

func Extract

func Extract[T base.BytesLike](tape Transcript, label string, f algebra.FiniteStructure[T]) (T, error)

Extract derives a field element from the transcript using the given structure.

Types

type Transcript

type Transcript interface {
	AppendDomainSeparator(tag string)
	AppendBytes(label string, messages ...[]byte)
	ExtractBytes(label string, outLen uint) ([]byte, error)
	base.Clonable[Transcript]
}

Transcript records protocol messages and derives challenges from them.

Directories

Path Synopsis
Package hagrid provides a transcript implementation based on cSHAKE256 with domain separation and labelled message binding.
Package hagrid provides a transcript implementation based on cSHAKE256 with domain separation and labelled message binding.

Jump to

Keyboard shortcuts

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