Trait schnorr_fun::nonce::AddTag [−][src]
Expand description
Trait for things that can domain separate themselves.
Required methods
Tells the invocant to return a new version of itself modified with the
tag. This is to ensure that a NonceGen
does not produce the
same outputs for two different tags even if they have the same
public inputs.
Internally, the implementations provided in this library use the scheme described in BIP-340.
Implementations on Foreign Types
AddTag is implemented for () so you can use implement things generically for
AddTag
even for things that have some field set to () (for example
NonceGen
when you’re doing verification only).