MCPcopy Create free account
hub / github.com/chain/txvm / sign

Function sign

protocol/txbuilder/txbuilder_test.go:449–458  ·  view source on GitHub ↗
(t *testing.T, tpl *Template)

Source from the content-addressed store, hash-verified

447}
448
449func sign(t *testing.T, tpl *Template) {
450 ctx := context.Background()
451 err := tpl.Sign(ctx, func(_ context.Context, data []byte, _ []byte, path [][]byte) ([]byte, error) {
452 derived := testutil.TestXPrv.Derive(path)
453 return derived.Sign(data), nil
454 })
455 if err != nil {
456 t.Fatal(err)
457 }
458}
459
460func checkLogTypes(t *testing.T, log []txvm.Tuple,
461 inputCount, outputCount, retireCount, issueCount, finalizeCount int) {

Callers 1

TestResultsFunction · 0.70

Calls 2

SignMethod · 0.45
DeriveMethod · 0.45

Tested by

no test coverage detected