Documentation
¶
Overview ¶
package tx contains generic Signable implementations that can be used by your application or tests to handle authentication needs.
It currently supports transaction data as opaque bytes and either single or multiple private key signatures using straightforward algorithms. It currently does not support N-of-M key share signing of other more complex algorithms (although it would be great to add them)
Index ¶
Constants ¶
This section is empty.
Variables ¶
var TxMapper data.Mapper
Functions ¶
This section is empty.
Types ¶
type MultiSig ¶
MultiSig lets us wrap arbitrary data with a go-crypto signature
TODO: rethink how we want to integrate this with KeyStore so it makes more sense (particularly the verify method)
func (*MultiSig) Sign ¶
Sign will add a signature and pubkey.
Depending on the Signable, one may be able to call this multiple times for multisig Returns error if called with invalid data or too many times
type OneSig ¶
OneSig lets us wrap arbitrary data with a go-crypto signature
TODO: rethink how we want to integrate this with KeyStore so it makes more sense (particularly the verify method)
func (*OneSig) Sign ¶
Sign will add a signature and pubkey.
Depending on the Signable, one may be able to call this multiple times for multisig Returns error if called with invalid data or too many times
type Sig ¶
type Sig struct {
SigInner
}
Sig is what is exported, and handles serialization