Documentation ¶
Index ¶
- func DecryptMsg(ecdsaPrivkey *ecdsa.PrivateKey, msg []byte) ([]byte, error)
- func EncryptWithDIDPubkey(msg []byte, didpubkey []byte) ([]byte, error)
- func PrivateKeyToEcdsaPrivkey(data []byte) (*ecdsa.PrivateKey, error)
- func UnmarshalPubkey(data []byte) (*ecdsa.PublicKey, error)
- type DidPubkey
- type OrangeProviderOntSdk
- func (s *OrangeProviderOntSdk) DecryptData(msg []byte) ([]byte, error)
- func (s *OrangeProviderOntSdk) EncryptDataWithDID(data []byte, did string) ([]byte, error)
- func (s *OrangeProviderOntSdk) GetSelfDID() string
- func (s *OrangeProviderOntSdk) SignData(data []byte) ([]byte, error)
- func (s *OrangeProviderOntSdk) VerifySig(did string, msg []byte, sigbytes []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptMsg ¶
func DecryptMsg(ecdsaPrivkey *ecdsa.PrivateKey, msg []byte) ([]byte, error)
func PrivateKeyToEcdsaPrivkey ¶
func PrivateKeyToEcdsaPrivkey(data []byte) (*ecdsa.PrivateKey, error)
Types ¶
type OrangeProviderOntSdk ¶
type OrangeProviderOntSdk struct {
// contains filtered or unexported fields
}
func NewOrangeProviderOntSdk ¶
func NewOrangeProviderOntSdk(walletPath string, pwd string, network string) (*OrangeProviderOntSdk, error)
func (*OrangeProviderOntSdk) DecryptData ¶
func (s *OrangeProviderOntSdk) DecryptData(msg []byte) ([]byte, error)
func (*OrangeProviderOntSdk) EncryptDataWithDID ¶
func (s *OrangeProviderOntSdk) EncryptDataWithDID(data []byte, did string) ([]byte, error)
func (*OrangeProviderOntSdk) GetSelfDID ¶
func (s *OrangeProviderOntSdk) GetSelfDID() string
Click to show internal directories.
Click to hide internal directories.