Skip to content

Commit 847df64

Browse files
committed
Add notice for using StandardCapabilityAccount
1 parent 1f5fbda commit 847df64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/types/core/keystore.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ func (s *Ed25519Signer) Sign(r io.Reader, digest []byte, opts crypto.SignerOpts)
7878
return s.signFn(ctx, s.account, digest)
7979
}
8080

81+
// Notice: when developing a capability that uses the StandardCapabilityAccount signer,
82+
// prefix your signing data with a unique string using the `MakePeerIDSignatureDomainSeparatedPayload` helper function.
83+
// Link: https://github.com/smartcontractkit/libocr/blob/88bb5d99bf3f9f215a8926e8af972de0cdd3802e/ragep2p/peeridhelper/domain_separation.go#L25
8184
var P2PAccountKey = "P2P_SIGNER"
8285
var StandardCapabilityAccount = "STANDARD_CAPABILITY_ACCOUNT"
8386

0 commit comments

Comments
 (0)