Skip to content
Various bindings for https://github.com/lukechampine/us
Go Ruby 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.
c
gomobile
ruby
LICENSE
README.md

README.md

us-bindings

Various bindings for us. Highly experimental.

Contracts

The bindings accept contracts in the form of a 96-byte array, consisting of the host public key, file contract ID, and renter secret key. The easiest way to acquire such a contract is via user:

user form [host key] 100SC 1000 example.contract
xxd -ps -s 12 -l 96 example.contract | tr -d '\n'

This will print the contract as a 192-byte hex string. You can convert this to a QR code using a local program/library or any number of online generator services.

It is also possible to convert siad contracts to this format, but it's a little trickier. I will provide a script to perform the conversion upon request.

You can’t perform that action at this time.