bynk.actor.foreign_reserved_secret
Error A Foreign actor's secret uses a BYNK_CALL_ edge key's name.
bynk deploy mints the keys that Bynk contexts sign their calls to each other with, and names them BYNK_CALL_FROM_… and BYNK_CALL_TO_…. A foreign caller's secret in that range could collide with one of them, so those names are kept for contexts. Pick another name, such as LEGACY_CALL_KEY.
Example
actor Legacy { auth = Foreign(secret = "BYNK_CALL_FROM_LEGACY") } // ✗ a `BYNK_CALL_` key name
actor Legacy { auth = Foreign(secret = "LEGACY_CALL_KEY") } // ✓ any other nameIn the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.foreign_reserved_secretshows the same from the installed toolchain, without a network.