lukechampine / us-bindings

Various bindings for https://github.com/lukechampine/us

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Various bindings for https://github.com/lukechampine/us

License:MIT License


Languages

Language:Go 60.4%Language:Python 24.1%Language:Ruby 10.4%Language:C 4.5%Language:Makefile 0.6%