Types
AddressInfoEvent = object peer*: PeerAddr peerId*: PeerAddr
AuthCompleteEvent = object peer*: PeerAddr
Authentication {.pure.} = enum NoSecurity = (0, "No serucity"), UnAuth = (1, "Unauthenticated pairing"), UnAuthSecure = (2, "Unauthenticated Secure Connetions pairing"), Auth = (3, "Authenticated pairing"), AuthSecure = (4, "Authenticated Secure Connetions pairing")
AuthFailInfo = object peer*: PeerAddr smReason*: SmReason
Authorization {.pure.} = enum NotCompleted = (0, "Authorization not completed"), Completed = (1, "Authorization completed")
Dhk = object bytes*: array[32, uint8]
EdivRandEvent = object peer*: PeerAddr ediv*: uint16 rand*: array[8, uint8]
IoCap {.pure.} = enum DisplayOnly = 0, DisplayYesNo = 1, KeyboardOnly = 2, NoInputNoOutput = 3, KeyboardDisplay = 4
Irk = object bytes*: array[16, uint8]
LocalSecurity = object peer*: PeerAddr auth*: Authentication encKeySize*: uint8 authorization*: bool
RemoteCollectionKeys = object peer*: PeerAddr peerAddrStr*: string auth*: Authentication encKeySize*: uint8 irk*: array[16, uint8] ltk*: array[16, uint8] csrk*: array[16, uint8] rand*: array[8, uint8] ediv*: uint16 authorized*: bool valid*: bool
SecurityMode {.pure.} = enum NoAuth = 1, Level2 = 2, Level4 = 6
Procs
proc `$`(key: RemoteCollectionKeys): string {....raises: [], tags: [], forbids: [].}