relaycorp / awala-endpoint-internet

Middleware for server-side apps to communicate over Awala without implementing any of the networking or cryptography from the protocol suite.
https://docs.relaycorp.tech/awala-endpoint-internet/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Publish event for valid incoming service message #11

Closed gnarea closed 1 year ago

gnarea commented 1 year ago

This Part 3b of the POST / endpoint in the PoHTTP server.

Please refer to the spec for the CloudEvent incoming-service-message in the README.

Example: https://github.com/relaycorp/veraid-authority/blob/291f81f7bbf8a4265341290a8e800642aba5a38c/src/memberKeyImportToken.ts#L79-L90.

Unlike the Authority implementation, we should use the binary mode of CloudEvents; e.g.:

const emitter = emitterFor(transport, { mode: Mode.BINARY });

Additional TODO

See also:

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: