Documentation
¶
Index ¶
- Variables
- func UnmarshalBatchedPrivateToken(data []byte) (tokens.Token, error)
- type BatchedPrivateClient
- func (c BatchedPrivateClient) CreateTokenRequest(challenge []byte, nonce [][]byte, tokenKeyID []byte, ...) (BatchedPrivateTokenRequestState, error)
- func (c BatchedPrivateClient) CreateTokenRequestWithBlinds(challenge []byte, nonces [][]byte, tokenKeyID []byte, ...) (BatchedPrivateTokenRequestState, error)
- type BatchedPrivateIssuer
- type BatchedPrivateTokenRequest
- type BatchedPrivateTokenRequestState
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BatchedPrivateTokenType = uint16(0xF91A)
)
Functions ¶
Types ¶
type BatchedPrivateClient ¶
type BatchedPrivateClient struct { }
func NewBatchedPrivateClient ¶
func NewBatchedPrivateClient() BatchedPrivateClient
func (BatchedPrivateClient) CreateTokenRequest ¶
func (c BatchedPrivateClient) CreateTokenRequest(challenge []byte, nonce [][]byte, tokenKeyID []byte, verificationKey *oprf.PublicKey) (BatchedPrivateTokenRequestState, error)
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 (i BatchedPrivateIssuer) Evaluate(req *BatchedPrivateTokenRequest) ([]byte, error)
func (*BatchedPrivateIssuer) TokenKey ¶
func (i *BatchedPrivateIssuer) TokenKey() *oprf.PublicKey
func (*BatchedPrivateIssuer) TokenKeyID ¶
func (i *BatchedPrivateIssuer) TokenKeyID() []byte
type BatchedPrivateTokenRequest ¶
type BatchedPrivateTokenRequest struct { TokenKeyID uint8 BlindedReq [][]byte // contains filtered or unexported fields }
func (BatchedPrivateTokenRequest) Equal ¶
func (r BatchedPrivateTokenRequest) Equal(r2 BatchedPrivateTokenRequest) bool
func (*BatchedPrivateTokenRequest) Marshal ¶
func (r *BatchedPrivateTokenRequest) Marshal() []byte
func (BatchedPrivateTokenRequest) Type ¶
func (r BatchedPrivateTokenRequest) Type() uint16
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 ¶
func (s BatchedPrivateTokenRequestState) Request() *BatchedPrivateTokenRequest
Click to show internal directories.
Click to hide internal directories.