mirror of
https://github.com/zap-proto/zap-es.git
synced 2026-11-03 13:26:07 +00:00
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]>
13 lines
239 B
Cap'n Proto
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);
|
|
}
|