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%
231 B · 9 lines swift
Raw Blame History
1import Foundation23struct BorshDecoder {4    func decode<T>(_: T.Type, from data: Data) throws -> T where T: BorshDeserializable {5        var reader = BinaryReader(bytes: [UInt8](data))6        return try T(from: &reader)7    }8}9