Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 2.64 KB

AnchorLinkSharp--LinkUtils.md

File metadata and controls

37 lines (22 loc) · 2.64 KB

class AnchorLinkSharp::LinkUtils

Summary

Members Descriptions
public static byte[] AbiEncode(object value, string typeName)
public static TResultType AbiDecode< TResultType >(byte[] bytes, string typeName, TResultType result) Helper to ABI decode data.
public static byte[] SealMessage(string message, string privateKey, string publicKey) Encrypt a message using AES and shared secret derived from given keys.
public static string NormalizePublicKey(string key) Ensure public key is in new PUB_ format.
public static bool PublicKeyEqual(string keyA, string keyB) Return true if given public keys are equal.
public static string GeneratePrivateKey() Generate a random private key. Uses browser crypto if available, otherwise falls back to slow eosjs-ecc.

Members

public static byte[] AbiEncode(object value, string typeName)
public static TResultType AbiDecode< TResultType >(byte[] bytes, string typeName, TResultType result)

Helper to ABI decode data.

public static byte[] SealMessage(string message, string privateKey, string publicKey)

Encrypt a message using AES and shared secret derived from given keys.

public static string NormalizePublicKey(string key)

Ensure public key is in new PUB_ format.

public static bool PublicKeyEqual(string keyA, string keyB)

Return true if given public keys are equal.

public static string GeneratePrivateKey()

Generate a random private key. Uses browser crypto if available, otherwise falls back to slow eosjs-ecc.