コード例 #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;
 }
コード例 #4
0
 public WebSitesController(IResourceDataAccess webSiteAccess)
 {
     _webSiteAccess = webSiteAccess;
 }
コード例 #5
0
        public static Key LoadNBEcKey(IResourceDataAccess resourceDataAccess)
        {
            string base58 = resourceDataAccess.Load();

            return(LoadNBEcKey(base58));
        }