All files buoy-types.ts

100% Statements 19/19
75% Branches 6/8
100% Functions 1/1
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22110x     1x 1x 1x 1x 1x       1x 1x 1x 1x       2x 1x    
import {Bytes, Name, PublicKey, Struct, TimePointSec, UInt32, UInt64} from '@wharfkit/session'
 
@Struct.type('buoy_message')
export class BuoyMessage extends Struct {
    @Struct.field('public_key') from!: PublicKey
    @Struct.field('uint64') nonce!: UInt64
    @Struct.field('bytes') ciphertext!: Bytes
    @Struct.field('uint32') checksum!: UInt32
}
 
@Struct.type('buoy_session')
export class BuoySession extends Struct {
    @Struct.field('name') session_name!: Name
    @Struct.field('public_key') request_key!: PublicKey
    @Struct.field('string', {extension: true}) user_agent?: string
}
 
@Struct.type('buoy_info')
export class BuoyInfo extends Struct {
    @Struct.field('time_point_sec') expiration!: TimePointSec
}