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%
349 B · 11 lines swift
Raw Blame History
1import Foundation23public extension NSRegularExpression {4    func matches(_ string: String) -> Bool {5        let range = NSRange(location: 0, length: string.utf16.count)6        return firstMatch(in: string, options: [], range: range) != nil7    }89    static let publicKey = try! NSRegularExpression(pattern: #"^[1-9A-HJ-NP-Za-km-z]{32,44}$"#)10}11