dfinity / interface-spec

IC Interface Specification
https://khsfq-wqaaa-aaaak-qckvq-cai.icp0.io/docs
Other
37 stars 21 forks source link

Discrepancies to `drun` #10

Open ggreif opened 2 years ago

ggreif commented 2 years ago

So far I have found a few aspects where drun differs from ic-ref:

I am asking the oracle here, to clarify what the expected behaviour is, and shall write follow-ups.

nomeata commented 2 years ago

With endpoints you mean canister method names? The spec has no restrictions, as long as its UTF8-encoded text, and even stuff like the empty string should work. I had always meant to test hat with ic-ref-test, but never got around to do it; I think there is an issue on dfinity/ic-ref about it.

I also don’t see a reason for restricting the size of custom sections.

ggreif commented 2 years ago

Yes, endpoint = method name. Thanks for the explanation!

mraszyk commented 1 year ago

Methods with names such as canister_query get-counter-# are allowed by the latest replica.

mraszyk commented 1 year ago

The limit on custom section name length (incl. icp:public or icp:private prefix) is 100000 as of now (see here).

mraszyk commented 1 year ago

More generally, there are wasmtime-specific limits that are not reflected in the spec.