Documentation ¶
Index ¶
- func CombinePrivateKeys(keys ...*btcec.PrivateKey) *btcec.PrivateKey
- func DecryptECIES(priv *btcec.PrivateKey, cipherText []byte) ([]byte, error)
- func DirectWPKHScriptFromAddress(adr string) ([]byte, error)
- func DirectWPKHScriptFromPKH(pkh [20]byte) []byte
- func DirectWSHScriptFromAddress(adr string) ([]byte, error)
- func DirectWSHScriptFromSH(sh [32]byte) []byte
- func EncryptECIES(pubKey [33]byte, msg []byte) ([]byte, error)
- func IsConnectionError(err error) bool
- func KeyHashFromPkScript(pkscript []byte) []byte
- func PrintTx(tx *wire.MsgTx)
- type CombinablePubKeySlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombinePrivateKeys ¶
func CombinePrivateKeys(keys ...*btcec.PrivateKey) *btcec.PrivateKey
CombinePrivateKeys takes a set of private keys and combines them in the same way as done for public keys. This only works if you know *all* of the private keys. If you don't, we'll do something with returning a scalar coefficient... I don't know how that's going to work. Schnorr stuff isn't decided yet.
func DecryptECIES ¶
func DecryptECIES(priv *btcec.PrivateKey, cipherText []byte) ([]byte, error)
func DirectWPKHScriptFromPKH ¶
func DirectWSHScriptFromSH ¶
func IsConnectionError ¶
func KeyHashFromPkScript ¶
Types ¶
type CombinablePubKeySlice ¶
PubKeySlice are slices of pubkeys, which can be combined (and sorted)
func (CombinablePubKeySlice) ComboCommit ¶
func (p CombinablePubKeySlice) ComboCommit() chainhash.Hash
ComboCommit generates the "combination commitment" which contributes to the hash-coefficient for every key being combined.
func (CombinablePubKeySlice) Len ¶
func (p CombinablePubKeySlice) Len() int
func (CombinablePubKeySlice) Less ¶
func (p CombinablePubKeySlice) Less(i, j int) bool
func (CombinablePubKeySlice) Swap ¶
func (p CombinablePubKeySlice) Swap(i, j int)
Make PubKeySlices sortable
Click to show internal directories.
Click to hide internal directories.