Documentation
¶
Index ¶
- func GetPolicyEnvelope(policy string) ([]byte, error)
- func GetSignatureSet(artifact *valiadationArtifacts) []*protoutil.SignedData
- func New() (*wasmer.Imports, error)
- func UnmarshalPrivateKey(data []byte, opt AlgorithmOption) (crypto.PrivateKey, error)
- func UnmarshalPublicKey(data []byte, opt AlgorithmOption) (crypto.PublicKey, error)
- func UnmarshalValidatorInfo(validatorBytes []byte) (*validatorInfo, error)
- func ValidateChainCodeID(prp []byte, name string) error
- func ValidateV14(proof, policyBytes []byte, confByte []string, cid string) error
- type AlgorithmOption
- type ECDSASignature
- type Imports
- type PolicyEvaluator
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPolicyEnvelope ¶
func GetSignatureSet ¶
func GetSignatureSet(artifact *valiadationArtifacts) []*protoutil.SignedData
func UnmarshalPrivateKey ¶
func UnmarshalPrivateKey(data []byte, opt AlgorithmOption) (crypto.PrivateKey, error)
func UnmarshalPublicKey ¶
func UnmarshalPublicKey(data []byte, opt AlgorithmOption) (crypto.PublicKey, error)
func UnmarshalValidatorInfo ¶
func ValidateChainCodeID ¶
Types ¶
type AlgorithmOption ¶
type AlgorithmOption string
const ( // Secp256k1 secp256k1 algorithm Secp256k1 AlgorithmOption = "Secp256k1" // Secp256r1 secp256r1 algorithm Secp256r1 AlgorithmOption = "Secp256r1" )
type ECDSASignature ¶
type PolicyEvaluator ¶
type PolicyEvaluator struct {
msp.IdentityDeserializer
}
func NewPolicyEvaluator ¶
func NewPolicyEvaluator(confBytes []string) (*PolicyEvaluator, error)
func (*PolicyEvaluator) Evaluate ¶
func (id *PolicyEvaluator) Evaluate(policyBytes []byte, signatureSet []*protoutil.SignedData) error
type PrivateKey ¶
type PrivateKey struct {
K *ecdsa.PrivateKey
}
func (*PrivateKey) Bytes ¶
func (priv *PrivateKey) Bytes() ([]byte, error)
Bytes returns a serialized, storable representation of this key
Click to show internal directories.
Click to hide internal directories.