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%
215 B · 10 lines swift
Raw Blame History
1import Foundation23struct BorshEncoder {4    func encode<T>(_ value: T) throws -> Data where T: BorshSerializable {5        var writer = Data()6        try value.serialize(to: &writer)7        return writer8    }9}10