From ddedb574a31af9295208e36d29e27f5e21984f0c Mon Sep 17 00:00:00 2001 From: Thomas Kerin Date: Fri, 14 Oct 2016 20:04:14 +0200 Subject: [PATCH] hdnode: add test cases exercising fromBuffer --- test/fixtures/hdnode.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/fixtures/hdnode.json b/test/fixtures/hdnode.json index 877dd6d..9fd4f3e 100644 --- a/test/fixtures/hdnode.json +++ b/test/fixtures/hdnode.json @@ -198,6 +198,26 @@ "exception": "Invalid checksum", "string": "xprvQQQQQQQQQQQQQQQQCviVfJSKyQ1mDYahRjijr5idH2WwLsEd4Hsb2Tyh8RfQMuPh7f7RtyzTtdrbdqqsunu5Mm3wDvUAKRHSC34sJ7in334" }, + { + "exception": "Invalid buffer length", + "network": "bitcoin", + "string": "HAsbc6CgKmTYEQg2CTz7m5STEPAB" + }, + { + "exception": "Invalid parent fingerprint", + "network": "bitcoin", + "string": "xprv9tnJFvAXAXPfPnMTKfwpwnkty7MzJwELVgp4NTBquaKXy4RndyfJJCJJf7zNaVpBpzrwVRutZNLRCVLEcZHcvuCNG3zGbGBcZn57FbNnmSP" + }, + { + "exception": "Invalid private key", + "network": "bitcoin", + "string": "xprv9s21ZrQH143K3yLysFvsu3n1dMwhNusmNHr7xArzAeCc7MQYqDBBStmqnZq6WLi668siBBNs3SjiyaexduHu9sXT9ixTsqptL67ADqcaBdm" + }, + { + "exception": "Invalid index", + "network": "bitcoin", + "string": "xprv9s21ZrQYdgnodnKW4Drm1Qg7poU6Gf2WUDsjPxvYiK7iLBMrsjbnF1wsZZQgmXNeMSG3s7jmHk1b3JrzhG5w8mwXGxqFxfrweico7k8DtxR" + }, { "exception": "Unknown network version", "string": "1111111111111adADjFaSNPxwXqLjHLj4mBfYxuewDPbw9hEj1uaXCzMxRPXDFF3cUoezTFYom4sEmEVSQmENPPR315cFk9YUFVek73wE9"