Skip to content

ic_cdk::api::data_certificate() is mis-designed #672

@vporton

Description

@vporton

ic_cdk::api::data_certificate is made useless for high-load works, because, to the time a query (non-update) callback is called, the certified data set by the corresponding update call may have be already changed by another update call.

The usable workflow would be instead to deliver (save to a variable, sent out in ah HTTPS outcall, etc.) the data_certificate() return value directly in the update call that sets the data.

It would be acceptable to spread this update call to several blocks, if needed.

The real task

I tried to deliver the value of the certificate in an HTTPS outcall, to check at the sever's side, whether the request to the server is properly authorized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions