Documentation
¶
Index ¶
- Constants
- func AssetCommitment(asset []byte, factor []byte) (result [33]byte, err error)
- func ElementsToSatoshiValue(val [ElementsUnconfidentialValueLength]byte) (result uint64, err error)
- func FinalValueBlindingFactor(input FinalValueBlindingFactorInput) ([32]byte, error)
- func NonceHash(ctx *secp256k1.Context, pubKey, privKey []byte) (result [32]byte, err error)
- func RangeProof(input RangeProofInput) ([]byte, error)
- func SatoshiToElementsValue(val uint64) (result [ElementsUnconfidentialValueLength]byte, err error)
- func SurjectionProof(input SurjectionProofInput) ([]byte, error)
- func ValueCommitment(value uint64, generator []byte, factor []byte) (result [33]byte, err error)
- type FinalValueBlindingFactorInput
- type RangeProofInput
- type SurjectionProofInput
- type UnblindInput
- type UnblindOutputResult
Constants ¶
View Source
const (
ElementsUnconfidentialValueLength = 9
)
Variables ¶
This section is empty.
Functions ¶
func AssetCommitment ¶
AssetCommitment method generates asset commitment
func ElementsToSatoshiValue ¶
func ElementsToSatoshiValue(val [ElementsUnconfidentialValueLength]byte) ( result uint64, err error, )
ElementsToSatoshiValue method converts Elements value to Satoshi value
func FinalValueBlindingFactor ¶
func FinalValueBlindingFactor(input FinalValueBlindingFactorInput) ( [32]byte, error, )
FinalValueBlindingFactor method generates blind sum
func RangeProof ¶
func RangeProof(input RangeProofInput) ([]byte, error)
RangeProof method calculates range proof
func SatoshiToElementsValue ¶
func SatoshiToElementsValue(val uint64) ( result [ElementsUnconfidentialValueLength]byte, err error, )
SatoshiToElementsValue method converts Satoshi value to Elements value
func SurjectionProof ¶
func SurjectionProof(input SurjectionProofInput) ([]byte, error)
SurjectionProof method generates surjection proof
Types ¶
type RangeProofInput ¶
type SurjectionProofInput ¶
type UnblindInput ¶
type UnblindOutputResult ¶
type UnblindOutputResult struct {
Value uint64
Asset []byte
ValueBlindingFactor []byte
AssetBlindingFactor []byte
}
func UnblindOutput ¶
func UnblindOutput(input UnblindInput) (*UnblindOutputResult, error)
UnblindOutput method unblinds confidential transaction output
Click to show internal directories.
Click to hide internal directories.