Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
c
 
 
 
 
 
 
 
 
 
 
 
 

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.