gate.computer

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

Testing from browser

Executing greet function of WebAssembly module /ipfs/QmWWL8Y89en4b8w33uYwb31ywigZcP6DmEHGZBo6crrnYd.

The server call is made anonymously.

Anonymous usage with curl

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

$ curl -o hello.wasm https://www.gate.computer/hello.wasm $ curl -XPUT -H"content-type: application/wasm" -H"content-length: 74794" --data-binary @hello.wasm "https://gate.computer/gate/module/sha384/7b2r_A3JbVYDrf3QLhlbn2DYfaesexE9gKZ7By5gRj5Dxzo_puPfSu4ben3Y4pcb?action=call&function=greet" hello, world

Execute by IPFS hash:

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

Command line client with identity support

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

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

Key defaults to ~/.ssh/id_ed25519.

@tsavola