<commit_before>'use strict';

define(['bitcoinjs-lib', 'util/btc'], function(Bitcoin, BtcUtils) {

var Crypto = Bitcoin.CryptoJS;

/**
 * Contacts (Address book).
 * @param {Object} store Object store
 * @constructor
 */
function Contacts(store, identity) {
  this.store = store;
  this.identity = identity
  this.contacts = this.store.init('contacts', [
    { name: 'DarkWallet team', address: '31oSGBBNrpCiENH3XMZpiP6GTC4tad4bMy' }
  ]);
  this.validAddresses = [
      identity.wallet.versions.address,
      identity.wallet.versions.stealth.address,
      identity.wallet.versions.p2sh
  ]
  this.initContacts();
}

/**
 * Update contacts after loading them.
 * @private
 */
Contacts.prototype.initContacts = function() {
  var self = this;
  var updated;
<commit_msg>add "libbitcoin team" to default list of contacts when creating new wallet.<commit_after>'use strict';

define(['bitcoinjs-lib', 'util/btc'], function(Bitcoin, BtcUtils) {

var Crypto = Bitcoin.CryptoJS;

/**
 * Contacts (Address book).
 * @param {Object} store Object store
 * @constructor
 */
function Contacts(store, identity) {
  this.store = store;
  this.identity = identity
  this.contacts = this.store.init('contacts', [
    { name: 'DarkWallet team', address: '31oSGBBNrpCiENH3XMZpiP6GTC4tad4bMy' },
    { name: 'libbitcoin team', address: '1Fufjpf9RM2aQsGedhSpbSCGRHrmLMJ7yY' }
  ]);
  this.validAddresses = [
      identity.wallet.versions.address,
      identity.wallet.versions.stealth.address,
      identity.wallet.versions.p2sh
  ]
  this.initContacts();
}

/**
 * Update contacts after loading them.
 * @private
 */
Contacts.prototype.initContacts = function() {
  var self = this;
  var updated;

{'fraction_non_alphanumeric': 0.13582443653618032, 'fraction_numerical': 0.010676156583629894, 'mean_word_length': 4.050898203592815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5590063', 'n_tokens_mistral': 579, 'n_tokens_neox': 576, 'n_words': 116}