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); }
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); }
public HomeController(IResourceTypeDataAccess resourceTypeDataAccess, IResourceDataAccess resourceDataAccess, IResourceCategoryDataAccess categoryDataAccess) { _resourceTypeDataAccess = resourceTypeDataAccess; _resourceDataAccess = resourceDataAccess; _categoryDataAccess = categoryDataAccess; }
public WebSitesController(IResourceDataAccess webSiteAccess) { _webSiteAccess = webSiteAccess; }
public static Key LoadNBEcKey(IResourceDataAccess resourceDataAccess) { string base58 = resourceDataAccess.Load(); return(LoadNBEcKey(base58)); }