public OpenChainSession(ApiProxy api, string passphrase) : base(api)
        {
            Mnemonic mnemonic = new Mnemonic(passphrase);

            passphraseKey = mnemonic.DeriveExtKey();
            rootKey       = passphraseKey.Derive(44, true).Derive(64, true).Derive(0, true).Derive(0).Derive(0);
            var bprootkey = rootKey.PrivateKey.PubKey.GetAddress(OpenChainServer.OpenChainNetwork);

            Account = $"/p2pkh/{bprootkey}/";
        }
 public OpenChainServer(ApiProxy api)
 {
     Api = api;
 }
 public static async Task <Record> GetValue(this ApiProxy api, string path, string type, string name, ByteString version = null)
 {
     return(await api.GetValue($"{path}:{type}:{name}", version));
 }
 public OpenChainServer(string baseUrl)
 {
     Api = new ApiProxy(baseUrl);
 }
 public static async Task <DecodedRecord <T> > GetValue <T>(this ApiProxy api, string path, string type, string name, ByteString version = null) where T : class
 {
     return(new DecodedRecord <T>(await api.GetValue($"{path}:{type}:{name}", version)));
 }