diff options
Diffstat (limited to 'vendor/go.mau.fi/libsignal/ecc/ECPublicKey.go')
-rw-r--r-- | vendor/go.mau.fi/libsignal/ecc/ECPublicKey.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/go.mau.fi/libsignal/ecc/ECPublicKey.go b/vendor/go.mau.fi/libsignal/ecc/ECPublicKey.go new file mode 100644 index 00000000..9b71f050 --- /dev/null +++ b/vendor/go.mau.fi/libsignal/ecc/ECPublicKey.go @@ -0,0 +1,11 @@ +package ecc + +// KeySize is the size of EC keys (32) with the EC type byte prepended to it. +const KeySize int = 33 + +// ECPublicKeyable is an interface for all elliptic curve public keys. +type ECPublicKeyable interface { + Serialize() []byte + Type() int + PublicKey() [32]byte +} |