typeF91A

package
v0.0.0-...-fdc2568 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BatchedPrivateTokenType = uint16(0xF91A)
)

Functions

func UnmarshalBatchedPrivateToken

func UnmarshalBatchedPrivateToken(data []byte) (tokens.Token, error)

Types

type BatchedPrivateClient

type BatchedPrivateClient struct {
}

func NewBatchedPrivateClient

func NewBatchedPrivateClient() BatchedPrivateClient

func (BatchedPrivateClient) CreateTokenRequestWithBlinds

func (c BatchedPrivateClient) CreateTokenRequestWithBlinds(challenge []byte, nonces [][]byte, tokenKeyID []byte, verificationKey *oprf.PublicKey, encodedBlinds [][]byte) (BatchedPrivateTokenRequestState, error)

type BatchedPrivateIssuer

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

func NewBatchedPrivateIssuer

func NewBatchedPrivateIssuer(key *oprf.PrivateKey) *BatchedPrivateIssuer

func (BatchedPrivateIssuer) Evaluate

func (*BatchedPrivateIssuer) TokenKey

func (i *BatchedPrivateIssuer) TokenKey() *oprf.PublicKey

func (*BatchedPrivateIssuer) TokenKeyID

func (i *BatchedPrivateIssuer) TokenKeyID() []byte

func (BatchedPrivateIssuer) Verify

func (i BatchedPrivateIssuer) Verify(token tokens.Token) error

type BatchedPrivateTokenRequest

type BatchedPrivateTokenRequest struct {
	TokenKeyID uint8
	BlindedReq [][]byte
	// contains filtered or unexported fields
}

func (BatchedPrivateTokenRequest) Equal

func (*BatchedPrivateTokenRequest) Marshal

func (r *BatchedPrivateTokenRequest) Marshal() []byte

func (BatchedPrivateTokenRequest) Type

func (*BatchedPrivateTokenRequest) Unmarshal

func (r *BatchedPrivateTokenRequest) Unmarshal(data []byte) bool

type BatchedPrivateTokenRequestState

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

func (BatchedPrivateTokenRequestState) FinalizeTokens

func (s BatchedPrivateTokenRequestState) FinalizeTokens(tokenResponseEnc []byte) ([]tokens.Token, error)

func (BatchedPrivateTokenRequestState) Request

Jump to

Keyboard shortcuts

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