MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / getCommKeys

Function getCommKeys

types/types_test.go:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33)
34
35func getCommKeys() (*asymmetric.PrivateKey, *asymmetric.PublicKey) {
36 testPriv := []byte{
37 0xea, 0xf0, 0x2c, 0xa3, 0x48, 0xc5, 0x24, 0xe6,
38 0x39, 0x26, 0x55, 0xba, 0x4d, 0x29, 0x60, 0x3c,
39 0xd1, 0xa7, 0x34, 0x7d, 0x9d, 0x65, 0xcf, 0xe9,
40 0x3c, 0xe1, 0xeb, 0xff, 0xdc, 0xa2, 0x26, 0x94,
41 }
42 return asymmetric.PrivKeyFromBytes(testPriv)
43}
44
45func TestSignedRequestHeader_Sign(t *testing.T) {
46 privKey, _ := getCommKeys()

Callers 5

TestRequest_SignFunction · 0.85
TestAck_SignFunction · 0.85
TestUpdateService_SignFunction · 0.85

Calls 1

PrivKeyFromBytesFunction · 0.92

Tested by

no test coverage detected