MCPcopy
hub / github.com/perkeep/perkeep / buildSigner

Method buildSigner

pkg/client/client.go:1382–1388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1380}
1381
1382func (c *Client) buildSigner() (*schema.Signer, error) {
1383 c.initSignerPublicKeyBlobrefOnce.Do(c.initSignerPublicKeyBlobref)
1384 if !c.signerPublicKeyRef.Valid() {
1385 return nil, camtypes.ErrClientNoPublicKey
1386 }
1387 return schema.NewSigner(c.signerPublicKeyRef, strings.NewReader(c.publicKeyArmored), c.SecretRingFile())
1388}
1389
1390// sigTime optionally specifies the signature time.
1391// If zero, the current time is used.

Callers 1

signerInitMethod · 0.95

Calls 3

SecretRingFileMethod · 0.95
NewSignerFunction · 0.92
ValidMethod · 0.45

Tested by

no test coverage detected