this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 35 lines 750 B view raw
1// Code generated by cuelang.org/go/pkg/gen. DO NOT EDIT. 2 3package ed25519 4 5import ( 6 "cuelang.org/go/internal/core/adt" 7 "cuelang.org/go/internal/pkg" 8) 9 10func init() { 11 pkg.Register("crypto/ed25519", p) 12} 13 14var _ = adt.TopKind // in case the adt package isn't used 15 16var p = &pkg.Package{ 17 Native: []*pkg.Builtin{{ 18 Name: "PublicKeySize", 19 Const: "32", 20 }, { 21 Name: "Valid", 22 Params: []pkg.Param{ 23 {Kind: adt.BytesKind | adt.StringKind}, 24 {Kind: adt.BytesKind | adt.StringKind}, 25 {Kind: adt.BytesKind | adt.StringKind}, 26 }, 27 Result: adt.BoolKind, 28 Func: func(c *pkg.CallCtxt) { 29 publicKey, message, signature := c.Bytes(0), c.Bytes(1), c.Bytes(2) 30 if c.Do() { 31 c.Ret, c.Err = Valid(publicKey, message, signature) 32 } 33 }, 34 }}, 35}