/// <summary> /// libsimba WalletBase implementation for Web3 Secret Storage format /// https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition /// </summary> /// <param name="walletPath">Path to the wallet</param> /// <param name="signingConfirmation"> /// A function reference to call to obtain permission to sign. Accepts an argument of type <see cref="RawPayload" />, /// and returns a bool. /// </param> public FileWallet(string walletPath, ISigningConfirmation signingConfirmation) : base(signingConfirmation) { WalletPath = walletPath; }
/// <summary> /// Base class for libsimba WalletBase implementations /// </summary> /// <param Name="signingConfirmation"> /// an optional callback for requesting user permission to sign a transaction. /// Should resolve a promise with true for accept, and false (or reject) for reject. /// </param> /// <param name="signingConfirmation"></param> protected WalletBase(ISigningConfirmation signingConfirmation = null) { SigningConfirmation = signingConfirmation; }