Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingPubKey = errors.New("phonon missing public key")
View Source
var ErrPhononCompromised error = errors.New("transaction with phonon as sender detected")
Functions ¶
Types ¶
type BTCValidator ¶
type BTCValidator struct {
// contains filtered or unexported fields
}
func NewBTCValidator ¶
func NewBTCValidator(c *bcoinClient) *BTCValidator
func (*BTCValidator) Validate ¶
func (b *BTCValidator) Validate(phonon *model.Phonon) (bool, error)
Validate returns true if the balance associated with the public key on the bitcoin phonon is greater than or equal to the balance stated in the phonon using as many known address generation functions as reasonable. Currently: P2SH script and P2PKH addresses.
Click to show internal directories.
Click to hide internal directories.