Documentation ¶
Index ¶
- Constants
- Variables
- func Base64Decode(s string) ([]byte, error)
- func Base64Encode(bs []byte) string
- func CheckConnection(myDid, theirDid string, db store.Store) error
- func ClearPasswd(passwd []byte)
- func CutDId(did string) string
- func CutRouter(router string) string
- func FileExisted(filename string) bool
- func GenUUID() string
- func GetDidDocByDid(did string, ontSdk *sdk.OntologySdk) (*message.DIDDoc, error)
- func GetIndex(did string) string
- func GetPassword() ([]byte, error)
- func GetPubKeyByDid(did string, ontSdk *sdk.OntologySdk) ([]byte, error)
- func GetServiceEndpointByDid(did string, ontSdk *sdk.OntologySdk) ([]string, error)
- func HttpPostData(client *http.Client, url, data string) ([]byte, error)
- func NewClient() *http.Client
- func OpenAccount(path string, ontSdk *sdk.OntologySdk) (*sdk.Account, error)
- func PubKeyEncodeString(pubKeyHex, SignType string) ([]byte, error)
- func ValidateDid(did string) bool
- type Authentication
- type DidPubKey
- type Doc
- type PublicKey
- type PublicKeyInfo
- type ServiceDoc
Constants ¶
View Source
const ( InvitationKey = "Invitation" ConnectionReqKey = "ConnectionReq" ConnectionKey = "Connection" BasicMsgKey = "Basic" ACK_SUCCEED = "succeed" ACK_FAILED = "failed" )
Variables ¶
View Source
var Version = ""
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func ClearPasswd ¶
func ClearPasswd(passwd []byte)
func FileExisted ¶
func GetDidDocByDid ¶
func GetPassword ¶
func GetPubKeyByDid ¶
func GetPubKeyByDid(did string, ontSdk *sdk.OntologySdk) ([]byte, error)
func GetServiceEndpointByDid ¶
func GetServiceEndpointByDid(did string, ontSdk *sdk.OntologySdk) ([]string, error)
func OpenAccount ¶
func PubKeyEncodeString ¶
func ValidateDid ¶
Types ¶
type Authentication ¶
type Doc ¶
type Doc struct { Context []string Id string PublicKey []PublicKey Authentication Authentication Controller interface{} Recovery interface{} Service []ServiceDoc Attribute interface{} Created interface{} Updated interface{} Proof interface{} }
type PublicKeyInfo ¶
type ServiceDoc ¶
Click to show internal directories.
Click to hide internal directories.