Files
zap-es/test/fixtures/hash-factory.capnp
3867c16237 feat: experimental RPC level 1 (#3)
Co-Authored-By: Julián Díaz <[email protected]>
Co-Authored-By: Ian Denhardt <[email protected]>
Co-Authored-By: Amos Wenger <[email protected]>
Co-authored-by: Andrew Dona <[email protected]>
2024-08-19 18:02:47 +02:00

13 lines
239 B
Cap'n Proto

# Based on https://github.com/jdiaz5513/capnp-ts (MIT - Julián Díaz)
@0xbba26a2caa3411e8;
interface HashFactory {
newSha1 @0 () -> (hash :Hash);
}
interface Hash {
write @0 (data :Data) -> ();
sum @1 () -> (hash :Data);
}