Created
September 3, 2014 06:36
-
-
Save whyrusleeping/91303dd0b96db420b235 to your computer and use it in GitHub Desktop.
ipfs key interfaces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package crypto | |
type PrivKey interface { | |
Sign([]byte) ([]byte, error) | |
Decrypt([]byte) ([]byte, error) | |
GetPublic() PubKey | |
GenSecret() []byte | |
} | |
type PubKey interface { | |
Verify([]byte, []byte) (bool, error) | |
Encrypt([]byte) ([]byte, error) | |
Bytes() []byte | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment