const e = require("compact-encoding"),
d = {
TYPE: 36,
preencode(d, c) {
e.fixed32.preencode(d, c.devicePublicKey)
},
encode(d, c) {
e.fixed32.encode(d, c.devicePublicKey)
},
decode: (d) => ({ devicePublicKey: e.fixed32.decode(d) }),
},
c = {
TYPE: 37,
preencode(d, c) {
;(e.fixed32.preencode(d, c.devicePublicKey), e.buffer.preencode(d, c.attestation))
},
encode(d, c) {
;(e.fixed32.encode(d, c.devicePublicKey), e.buffer.encode(d, c.attestation))
},
decode: (d) => ({ devicePublicKey: e.fixed32.decode(d), attestation: e.buffer.decode(d) }),
}
module.exports = { AddDeviceKeyOperation: d, AddDeviceAttestationOperation: c }