示例#1
0
        public static void SaveEcKey(Key nbEcKey, IResourceDataAccess resourceDataAccess)
        {
            byte[] bytes  = EcKey.ToAsn1(nbEcKey.ToBytes(), nbEcKey.PubKey.ToBytes());
            string base58 = Multibase.Encode(MultibaseEncoding.Base58Btc, bytes);

            resourceDataAccess.Save(base58);
        }
示例#2
0
 public ZbdBtcpayClient(MonoBehaviour mono, string pairCode, string btcpayServerHost)
 {
     this.resourceDataAccess = new FileResourceDataAccess();
     this.InitKeys();
     this.DeriveIdentity();
     this.btcPayLnService = new BtcPayLnService(mono, btcpayServerHost, this.ecKey, this.identity, pairCode);
 }
示例#3
0
 public HomeController(IResourceTypeDataAccess resourceTypeDataAccess,
                       IResourceDataAccess resourceDataAccess, IResourceCategoryDataAccess categoryDataAccess)
 {
     _resourceTypeDataAccess = resourceTypeDataAccess;
     _resourceDataAccess     = resourceDataAccess;
     _categoryDataAccess     = categoryDataAccess;
 }
 public WebSitesController(IResourceDataAccess webSiteAccess)
 {
     _webSiteAccess = webSiteAccess;
 }
示例#5
0
        public static Key LoadNBEcKey(IResourceDataAccess resourceDataAccess)
        {
            string base58 = resourceDataAccess.Load();

            return(LoadNBEcKey(base58));
        }