redjubjub/src
Henry de Valence 84b042003b Add methods to the Sealed trait, simplifying types.
The motivation is as follows.  The sealed trait pattern allows creating
a type-level equivalent of an enum: the trait corresponds to the enum
type and its implementors correspond to the enum variants; the `Sealed`
restriction ensures that there is a fixed set of enum variants.

In this picture, adding methods to the public trait corresponds to a
public method on an enum, while adding methods to the private trait
corresponds to a private method on an enum.  This means that we can add
a method to get the basepoint (whose possible choices are enumerated by
SigType) and avoid having to do specialized impls.
2019-12-04 11:41:46 -08:00
..
constants.rs Add byte encodings for Binding, SpendAuth basepoints. 2019-12-03 13:37:12 -08:00
error.rs Serialize PublicKey, SecretKey 2019-12-03 14:51:38 -08:00
lib.rs Add methods to the Sealed trait, simplifying types. 2019-12-04 11:41:46 -08:00
public_key.rs Add methods to the Sealed trait, simplifying types. 2019-12-04 11:41:46 -08:00
secret_key.rs Add methods to the Sealed trait, simplifying types. 2019-12-04 11:41:46 -08:00
signature.rs fmt 2019-12-03 13:39:26 -08:00