Skip to content
Output Descriptors are a simple language which can be used to describe collections of output scripts
Swift Ruby Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Descriptor.playground
OutputDescriptors.xcodeproj
OutputDescriptors
OutputDescriptorsTests
.gitignore
.travis.yml
LICENSE.md
OutputDescriptors.podspec
README.md

README.md

Output Descriptors for Swift Build Status

Output Descriptors are a simple language which can be used to describe collections of output scripts. They were introduced in Bitcoin Core 0.17. See descriptors.md to learn more.

This implementation is very limited; it currently only supports calculating the checksum for a descriptor string.

Install

Via CocoaPods:

pod 'OutputDescriptor', :git => 'https://github.com/sjors/output-descriptors-swift.git', :branch => 'master'

Usage

import OutputDescriptors
let descriptor = "wpkh(03501e454bf00751f24b1b489aa925215d66af2234e3891c3b21a52bedb3cd711c)"
let desc = OutputDescriptor(descriptor)
print("\(descriptor)#\(desc.checksum)")
// wpkh(03501e454bf00751f24b1b489aa925215d66af2234e3891c3b21a52bedb3cd711c)#e0lhcajv
You can’t perform that action at this time.