Documentation ¶
Index ¶
- Constants
- func ExtractValidationArtifacts(proof []byte) (*valiadationArtifacts, error)
- func GetPolicyEnvelope(policy string) ([]byte, error)
- func GetSignatureSet(artifact *valiadationArtifacts) []*protoutil.SignedData
- func New() (*wasmer.Imports, error)
- func PreCheck(proof, payload []byte, cid string) (*valiadationArtifacts, error)
- func UnmarshalPrivateKey(data []byte, opt AlgorithmOption) (crypto.PrivateKey, error)
- func UnmarshalPublicKey(data []byte, opt AlgorithmOption) (crypto.PublicKey, error)
- func ValidateChainCodeID(prp []byte, name string) error
- func ValidatePayload(info payloadInfo, payloadByte []byte) error
- func ValidateV14(proof, payload, policyBytes []byte, confByte []string, cid, from string) error
- type AlgorithmOption
- type ECDSASignature
- type Imports
- type PolicyEvaluator
- type PrivateKey
- type PublicKey
- type ValidatorInfo
Constants ¶
View Source
const (
FABRIC_EVALUATOR = "fabric_evaluator"
)
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 ValidateChainCodeID ¶
func ValidatePayload ¶
Types ¶
type AlgorithmOption ¶
type AlgorithmOption string
const ( // 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
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
PublicKey ECDSA public key. never new(PublicKey), use NewPublicKey()
type ValidatorInfo ¶
type ValidatorInfo struct { ChainId string `json:"chain_id"` ConfByte []string `json:"conf_byte"` Policy string `json:"policy"` Cid string `json:"cid"` }
func UnmarshalValidatorInfo ¶
func UnmarshalValidatorInfo(validatorBytes []byte) (*ValidatorInfo, error)
Click to show internal directories.
Click to hide internal directories.