Note how all the fields under private were turned into normal attributes, just with an encryption key. This is my understanding of how the API should look like. This way anyone can easily send data to the webhook and have it encrypted or not.
The webhook should ideally throw an error if the same attribute is present both inside private and outside it.
@williamchong
The webhook should be able to receive some metadata like this:
And then turn it into this for AuthAttr API (cbor-encoded):
Note how all the fields under
private
were turned into normal attributes, just with an encryption key. This is my understanding of how the API should look like. This way anyone can easily send data to the webhook and have it encrypted or not.The webhook should ideally throw an error if the same attribute is present both inside
private
and outside it.