SPB Git

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%
259 B · 11 lines swift
Raw Blame History
1import Foundation23public struct Throwable<T: Decodable>: Decodable {4    public let result: Result<T, Error>56    public init(from decoder: Decoder) throws {7        let catching = { try T(from: decoder) }8        result = Result(catching: catching)9    }10}11