gate.computer

Host gate.computer should be running a public Gate server.

Testing from browser

Executing main function of WebAssembly module /ipfs/QmQugy6674g1rJumFQ5gAtuJf8uJobxSi23GUqUaewoPLc.

The server call is made anonymously. See the module source code.

Anonymous usage with curl

Upload and execute (module hash must be supplied in URL):

$ curl -ohello.wasm https://raw.githubusercontent.com/tsavola/gate/1ec94ba2e9dd8e0901846fdc49d5e952a14490ff/testdata/hello.wasm $ curl -XPUT -Hcontent-type:application/wasm -Hcontent-length:68596 --data-binary @hello.wasm "https://gate.computer/gate/v0/module/sha384/b9xUy0i6zyoDbmZj6S-pITOY5NSOd-3Mr_h-hLi9ANX1W-2998L8ABqwITLGg9Bz?action=call&function=main" hello, world

Execute by IPFS hash:

$ curl -XPOST "https://gate.computer/gate/v0/module/ipfs/QmQugy6674g1rJumFQ5gAtuJf8uJobxSi23GUqUaewoPLc?action=call&function=main" hello, world

Command line client with identity support

Manage resources bound to a public key (requires Go, Git and OpenSSH keygen):

$ ssh-keygen -t ed25519 -f key $ go get github.com/tsavola/gate/cmd/gate $ PATH=$(go env GOPATH)/bin:$PATH $ gate -c identityfile=key gate.computer launch $(go env GOPATH)/src/github.com/tsavola/gate/testdata/hello.wasm 01234567-89ab-cdef-0123-456789abcdef $ gate -c identityfile=key gate.computer io 01234567-89ab-cdef-0123-456789abcdef hello, world $ gate -c identityfile=key gate.computer instances 01234567-89ab-cdef-0123-456789abcdef terminated with result 0 $ gate -c identityfile=key gate.computer modules I4hOg1lxclcr20elFIIjlrWw4H7Twp2eMTGU1KrfX_np05M6WZ0DpcTIvSajbE9d $ gate -c identityfile=key gate.computer call I4hOg1lxclcr20elFIIjlrWw4H7Twp2eMTGU1KrfX_np05M6WZ0DpcTIvSajbE9d hello, world

Key defaults to ~/.ssh/id_ed25519.

@tsavola