spb/os-vault Public
Self-custody, multi-chain crypto wallet for macOS. One recovery phrase, six chain families, zero API keys — nothing leaves your Mac.
Swift 96%
Shell 3.4%
Makefile 0.6%
1import Foundation23public struct AccountInstructions {4 public init(5 account: PublicKey,6 instructions: [TransactionInstruction] = [],7 cleanupInstructions: [TransactionInstruction] = [],8 signers: [KeyPair] = [],9 newWalletPubkey: String? = nil,10 secretKey: Data? = nil11 ) {12 self.account = account13 self.instructions = instructions14 self.cleanupInstructions = cleanupInstructions15 self.signers = signers16 self.newWalletPubkey = newWalletPubkey17 self.secretKey = secretKey18 }1920 public let account: PublicKey21 public var instructions: [TransactionInstruction]22 public var cleanupInstructions: [TransactionInstruction]23 public let signers: [KeyPair]2425 // additionally return new wallet address26 internal private(set) var newWalletPubkey: String?2728 // additionally return newAccount's secretkey29 internal private(set) var secretKey: Data?30}31