keybase-proofs
Version:
Publicly-verifiable proofs of identity
40 lines (28 loc) • 1.19 kB
JavaScript
// Generated by IcedCoffeeScript 108.0.11
(function() {
var Base, Device, constants,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Base = require('./base').Base;
constants = require('./constants').constants;
exports.Device = Device = (function(_super) {
__extends(Device, _super);
function Device(obj) {
this.device = obj.device;
Device.__super__.constructor.call(this, obj);
}
Device.prototype._type = function() {
return constants.sig_types.device;
};
Device.prototype._required_sections = function() {
return Device.__super__._required_sections.call(this).concat(["device"]);
};
Device.prototype._v_customize_json = function(ret) {
return ret.body.device = this.device;
};
Device.prototype._type_v2 = function() {
return constants.sig_types_v2.device;
};
return Device;
})(Base);
}).call(this);