MCPcopy
hub / github.com/yeasy/blockchain_guide / validSignature

Function validSignature

11_app_dev/chaincode_example05.go:228–230  ·  view source on GitHub ↗
(address string, signature string)

Source from the content-addressed store, hash-verified

226}
227
228func validSignature(address string, signature string) bool {
229 return signature == address+"1"
230}
231
232func parsePositiveAmount(value string) (int, error) {
233 amount, err := parseNonNegativeAmount(value)

Callers 2

BuyByAddressMethod · 0.70
ChangeStatusMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected